//
//  HWOpenServiceGameHeader.swift
//  HWPromoteProjectAPP
//
//  Created by 王昌健 on 2022/1/29.
//  Copyright © 2022 王昌健. All rights reserved.
//

import UIKit

class HWOpenServiceGameHeader: UICollectionReusableView {
    var gameImageView:UIImageView!
    var titleLabel:UILabel!
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        initUI()
        
        initFrame()
        
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}

extension HWOpenServiceGameHeader {
    private func initUI() -> Void {
        
        
        gameImageView = UIImageView()
        gameImageView.backgroundColor = .clear
        gameImageView.layer.cornerRadius = 12*widthScale
        addSubview(gameImageView)
    }
    
    private func initFrame() -> Void {
        gameImageView.snp.makeConstraints { make in
            make.left.equalTo(40*widthScale)
            make.top.equalTo(30*widthScale)
            make.width.height.equalTo(52*widthScale)
        }
    }
}
